package ${rootpackage}${moduleLow}.service.impl;

import java.util.List;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.clgk.wechatmall.common.sql.Page;
import ${rootpackage}${moduleLow}.bean.${module}Bean;
import ${rootpackage}${moduleLow}.dao.${module}Dao;
import ${rootpackage}${moduleLow}.service.${module}Service;

@Service
@Transactional
public class ${module}ServiceImpl implements ${module}Service {

	@Resource ${module}Dao ${module}Dao;

	@Override
	public List<${module}Bean> queryList(${module}Bean bean, Page page){
		return ${module}Dao.queryList(bean,page);
	}
	
	@Override
	public Integer deleteByIds(String ids){
		return ${module}Dao.deleteByIds(ids);
	}
	
	@Override
	public Long save(${module}Bean bean){
		return ${module}Dao.insert(bean);
	}
	
	@Override
	public Integer update(${module}Bean bean){
		return ${module}Dao.update(bean);
	}

}
